<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="text/html;charset=UTF-8">
    <title>WebSocket Logger</title>
    <link rel="stylesheet" th:href="@{/static/bootstrap-3.3.7/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/static/table/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/static/table/bootstrap-table.css}">
    <link rel="stylesheet" th:href="@{/static/css/font-awesome.min.css}"  >
    <link rel="stylesheet" th:href="@{/static/table/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/static/qrcodes.css}" />
    <style>
        .modal-backdrop.in{
            z-index : 999 !important;
        }
    </style>
</head>
<body style="margin-right: 30px">
<div class = "pg_header" >
    <span class="pg_dl" id="i77" th:align="center">二维码列表</span>
</div>
<br><br><br>
<div>
    <form class="form-inline">
    <input id="product_id" class="form-control" placeholder="商品id或商品名称"/>
    <input id="factoryName" class="form-control" placeholder="厂商名称"/>
    <!--&lt;!&ndash;<input id="state_form" class="form-control" placeholder="操作结果"/>&ndash;&gt;-->
    <input type="button" class="btn-primary btn-sm" value="统计" onclick="searchInfo()">
    </form>
    <br>
</div>
<table id="YourTable" class="table table-bordered" >
    <thead>
    <tr>
        <th data-field="productBatch" data-align="center">二维码编号</th>
       <!-- &lt;!&ndash;<th data-field="qrcodeId" data-align="center" hidden>二维码id</th>&ndash;&gt;-->
        <th data-field="factoryName" data-align="center">厂商名称</th>
        <th data-field="productId" data-align="center">产品id</th>
        <th data-field="productTime" data-align="center">产品生成时间</th>
        <th data-field="productBatch1" data-align="center">生产批次</th>
        <th data-field="productCreatTime" data-align="center">生产时间</th>
        <th data-field="productQualityTime" data-align="center">保质期至</th>
        <!--&lt;!&ndash;<th data-field="materialBatch" data-align="center" >原料批次</th>&ndash;&gt;-->
        <th data-field="excelUrl" data-align="center" data-formatter="statusInit">操作结果</th>
        <th data-formatter="addButton" data-events="operateEvents" data-align="center" data-width="130px"><div style="width:130px">操作</div></th>
    </tr>
    </thead>
</table>


<!--&lt;!&ndash; 模态框（Modal） &ndash;&gt;-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width:80%;margin-top: 20%">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    绑定产品信息
                </h4>
            </div>
            <div class="modal-body">
            <form id="bindForm">
                <input type="hidden" id="qrCodeNumber" name="qrCodeNumber" class="form-control" /><br>
                <input type="text" name="productBatch" class="form-control" placeholder="生产批次"/><br>
                <input onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',minDate:'2008-03-08'})" type="text" name="productCreatTime" class="form-control" placeholder="生产日期"/><br>
                <input onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',minDate:'2008-03-08'})" type="text" name="productQualityTime" class="form-control" placeholder="保质期至"/>
            </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="bindQRInfo()">
                    确定
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal" id="hideBut">返回
                </button>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/static/table/jquery.min.js}"></script>
<script th:src="@{/static/bootstrap-3.3.7/js/bootstrap.min.js}"></script>
<script th:src="@{/static/table/bootstrap-table.js}"></script>
<script th:src="@{/static/table/bootstrap-table-zh-CN.js}"></script>
<script th:src="@{/static/qrcode/qrcode.js}"></script>
<script th:src="@{/static/My97DatePicker/WdatePicker.js}"></script>
</body>
</html>